package org.example.myframework.frame.demo.factory.handler;

import org.example.myframework.frame.demo.factory.PayEnum;
import org.springframework.stereotype.Component;

@Component
public class WeChatHandler implements PayHandler{
    @Override
    public PayEnum getPayType() {
        return PayEnum.WE_CHAT_PAY;
    }

    @Override
    public void pay() {
        System.out.println("微信支付");
    }
}
